package com.lzc.tlmail.tlmailorder.feign;

import com.lzc.common.utils.R;
import com.lzc.tlmail.tlmailorder.vo.MemberAddressvo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author lzc
 * @create 2020-10-20 16:50
 */
@FeignClient("member-service")
public interface MemberFeignService {
    /**
     * 根据会员id获得收货地址
     * @param menberId
     * @return
     */
    @RequestMapping("/member/memberreceiveaddress/getMemberAddress/{menberId}")
    List<MemberAddressvo> memberReceiveAddressInfo(@PathVariable("menberId") Long menberId);

    /**
     * 获取收货地址
     * @param id
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/addressInfo/{id}")
     R getAddressinfoById(@PathVariable("id") Long id);
}
